import request from "@/utils/request.js";

/**
 * 积分商城
 */
export function getStoreIntegral(data) {
	return request.get("store_integral/index", data);
}



/**
 * 积分商城—积分兑换优惠券列表
 */
export function store_integralquan(data) {
	return request.get("store_integral/index?exchage_type=2", data);
}

/**
 * 积分商城—积分兑换优惠券列表
 */
export function store_integralquandetail(data) {
	return request.get("store_integral/detail/"+data); 
}

// 积分兑换优惠券 — 立即兑换
export function store_integralordersure(data) {
	return request.post("store_integral/order/create",data,{noVerify:true});
}

// 积分兑换优惠券 — 立即兑换
export function store_integralorderlist(data) {
	return request.get("store_integral/order/list?page="+data.page+"&limit="+data.limit+"&exchage_type="+"2");
}

// 券包列表
export function couponPackList(data) { 
	return request.get("coupon/pack/list",data);
}


// 券包下单购买
export function couponPackPayment(data) { 
	return request.post("coupon/pack/payment",data);
}
